package com.wang.packpojo;

import lombok.Data;

@Data
public class ShortMsg {

    private String name;

    private String time;

    private String content;


    public static void main(String[] args) {

        ShortMsg shortMsg = new ShortMsg();

        shortMsg.setName("测试");
        shortMsg.setTime("2020-10-20 10:20");
        shortMsg.setContent("测试");
        System.out.println(shortMsg.toString());

    }

    @Override
    public String toString() {
        return "{\"name\":\""+ name +"\", \"time\":\"" + time +"\", \"content\":\"" + content +"\"}";
    }
}
